package com.koron.common.core.business.message.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.common.core.business.message.bean.po.MessageTemplatePo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 消息模板表(MessageTemplate)表服务接口
 *
 * @author zhouj
 * @since 2022-03-16 14:13:47
 */
public interface MessageTemplateService {

    int insertOrUpdate(SessionFactory factory, MessageTemplatePo messageTemplate);

    int insertOrUpdateBatch(SessionFactory factory, List<MessageTemplatePo> messageTemplateList);

    int insert(SessionFactory factory, MessageTemplatePo messageTemplate);

    int insertBatch(SessionFactory factory, List<MessageTemplatePo> messageTemplateList);

    int update(SessionFactory factory, MessageTemplatePo messageTemplate);

    int deleteById(SessionFactory factory, String id);

    MessageTemplatePo queryById(SessionFactory factory, String id);

    PageInfo queryPageList(SessionFactory factory, MessageTemplatePo messageTemplate, PageQuery pageQuery);

    List<MessageTemplatePo> queryList(SessionFactory factory, MessageTemplatePo messageTemplate);

}
